strategy pattern
https://plantuml-proxy.vercel.app/svg/https://scrapbox.io/api/code/suto3/strategy_pattern/strategy_pattern.pu#.svg
code:strategy_pattern.pu
@startuml Strategy Method
abstract class Strategy{
--
# {abstract} Entity func()
}
class Strategy1 extends Strategy{
--
# Entity1 func()
}
class Strategy2 extends Strategy{
--
# Entity2 func()
}
class Context{
- strategy : Strategy
--
# Entity call()
}
Context o-r- Strategy : contain >
@enduml